//
//  LZSelectDateView.h
//  laziz_Merchant
//
//  Created by ZhaoDongBo on 2016/12/20.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, SELECT_TYPE) {
    SELECT_TYPE_DATE,
    SELECT_TYPE_TIME
};

typedef NS_ENUM(NSUInteger, SELECT_TIME_TYPE) {
    SELECT_TIME_TYPE_Now,   // 当前时间
    SELECT_TIME_TYPE_Start, // 开始时间
    SELECT_TIME_TYPE_End,   // 结束时间
};

@interface LZSelectDateView : UIView

@property (nonatomic, copy) void(^selectValueBlock)(NSString * value);

@property (nonatomic, strong) UIButton * cancelButton;
@property (nonatomic, strong) UIButton * confirmButton;

@property (nonatomic, assign) SELECT_TYPE type;
@property (nonatomic, strong) UIPickerView * pickView;

- (instancetype)initWithFrame:(CGRect)frame andSelectType:(SELECT_TYPE)type;

- (void)hideSelectView;

- (void)showDateView:(NSString *)strDate;

- (void)showTimeView:(NSString *)time andTimeType:(SELECT_TIME_TYPE)timeType;

@end
